package com.example.bookmanage.mapper;

import com.example.bookmanage.domain.reader.Reader;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.bookmanage.domain.reader.dto.ReaderQueDTO;
import com.example.bookmanage.domain.reader.vo.ReaderVO;

import java.util.List;

/**
* @author lyk19
* @description 针对表【reader_db】的数据库操作Mapper
* @createDate 2025-02-01 20:59:02
* @Entity .domain.reader.Reader
*/
public interface ReaderMapper extends BaseMapper<Reader> {

    List<ReaderVO> selectReaderList(ReaderQueDTO readerQueDTO);

    void updateLastGeneratedNumber(Long newNumber);

    Long getLastGeneratedNumber();

    int updateByCardId(Reader reader);
}
